package word427.chapter21;

public class Student {
    private String name;//姓名
    private int age;//年龄
    private String sex;//性别

    public Student(String name,int age,String sex){
        this.age = age;
        this.name = name;
        this.sex = sex;
    }

    public String toString(){
       return "该生的姓名是："+name+", 性别是："+sex+", 年龄是："+age;
    }
}
